<?php 
$uri = $this->uri->segment(2);
$dashboard_arr = array('index', '');
$user_arr = array('user');
$post_arr = array('post', 'blocked_post', 'moderated_post');
$page_arr = array('pages', 'pages_published', 'pages_edit', 'pages_drafted');
$category_arr = array('category', 'editcategory', 'deletecategory', 'addcategory');
$menu_arr = array('menu', 'edit_menu', 'delete_menu');
$logindata_arr = array('login_data');
$settings_arr = array('settings');
$profile_arr = array('editprofile');
$user_arr = array('user', 'unverified_user', 'blocked_user');
$adm_arr = array('ads_config');
$ad_arr = array('ads_config', 'ad_add');
?>
<ul id="adm-menu">
	<li>
		<?php if(in_array($uri, $dashboard_arr)): ?><a href="<?php echo site_url('mimin_jonu') ?>" class="active">
		<?php else: ?><a href="<?php echo site_url('mimin_jonu') ?>"><?php endif; ?>
			<i class="fa fa-dashboard fa-fw"></i> <span>Dashboard</span>
		</a>
	</li>
	<li>
		<?php if(in_array($uri, $user_arr)): ?><a href="<?php echo site_url('mimin_jonu/user') ?>" class="active">
		<?php else: ?><a href="<?php echo site_url('mimin_jonu/user') ?>"><?php endif; ?>
			<i class="fa fa-group fa-fw"></i> <span>Users</span>
		</a>
		<ul class="adm-menu-child">
			<li><a href="<?php echo site_url('mimin_jonu/unverified_user') ?>"><i class="fa fa-fw fa-times"></i> <span>Unverified Users</span></a></li>						
			<li><a href="<?php echo site_url('mimin_jonu/blocked_user') ?>"><i class="fa fa-fw fa-bell-slash-o"></i> <span>Blocked Users</span></a></li>						
		</ul>
	</li>
	<li>
		<?php if(in_array($uri, $post_arr)): ?><a href="<?php echo site_url('mimin_jonu/post') ?>" class="active">
		<?php else: ?><a href="<?php echo site_url('mimin_jonu/post') ?>"><?php endif; ?>
			<i class="fa fa-file-text fa-fw"></i> <span>Posts</span>
		</a>
		<ul class="adm-menu-child">
			<li><a href="<?php echo site_url('mimin_jonu/moderated_post') ?>"><i class="fa fa-fw fa-spinner"></i> <span>Pending Posts</span></a></li>	
			<li><a href="<?php echo site_url('mimin_jonu/blocked_post') ?>"><i class="fa fa-fw fa-ban"></i> <span>Blocked Post</span></a></li>
		</ul>
	</li>
	<li>
		<?php if(in_array($uri, $page_arr)): ?><a href="<?php echo site_url('mimin_jonu/pages') ?>" class="active">
		<?php else: ?><a href="<?php echo site_url('mimin_jonu/pages') ?>"><?php endif; ?>
			<i class="fa fa-info-circle fa-fw"></i> <span>Pages</span>
		</a>
		<ul class="adm-menu-child">
			<li><a href="<?php echo site_url('mimin_jonu/pages_published') ?>"><i class="fa fa-send fa-fw"></i> <span>Published Pages</span></a></li>
			<li><a href="<?php echo site_url('mimin_jonu/pages_drafted') ?>"><i class="fa fa-save fa-fw"></i> <span>Drafted Pages</span></a></li>
		</ul>
	</li>	
	<li>
		<?php if(in_array($uri, $category_arr)): ?><a href="<?php echo site_url('mimin_jonu/category') ?>" class="active">
		<?php else: ?><a href="<?php echo site_url('mimin_jonu/category') ?>"><?php endif; ?>
			<i class="fa fa-tags fa-fw"></i> <span>Categories</span>
		</a>
		<ul class="adm-menu-child">
			<li><a href="<?php echo site_url('mimin_jonu/addcategory') ?>"><i class="fa fa-tag fa-fw"></i> <span>Add Category</span></a></li>
		</ul>
	</li>
	<li>
		<?php if(in_array($uri, $menu_arr)): ?><a href="<?php echo site_url('mimin_jonu/menu') ?>" class="active">
		<?php else: ?><a href="<?php echo site_url('mimin_jonu/menu') ?>"><?php endif; ?>
			<i class="fa fa-fw fa-list-alt"></i> <span>Menus</span>
		</a>
	</li>	
	<li>
		<?php if($uri == "map_view"): ?><a href="<?php echo site_url('mimin_jonu/map_view') ?>" class="active">
		<?php else: ?><a href="<?php echo site_url('mimin_jonu/map_view') ?>"><?php endif; ?>
			<i class="fa fa-map-marker fa-fw"></i> <span>Map View</span>
		</a>
	</li>
	<li>
		<?php if(in_array($uri, $ad_arr)): ?><a href="<?php echo site_url('mimin_jonu/ads_config') ?>" class="active">
		<?php else: ?><a href="<?php echo site_url('mimin_jonu/ads_config') ?>"><?php endif; ?>
			<i class="fa fa-dollar fa-fw"></i> <span>Ads Config</span>
		</a>
		<ul class="adm-menu-child">
			<li><a href="<?php echo site_url('mimin_jonu/ad_add') ?>"><i class="fa fa-paint-brush fa-fw"></i> <span>Add an Ad</span></a></li>			
		</ul>
	</li>
	<li>
		<?php if(in_array($uri, $profile_arr)): ?><a href="<?php echo site_url('mimin_jonu/editprofile') ?>" class="active">
		<?php else: ?><a href="<?php echo site_url('mimin_jonu/editprofile') ?>"><?php endif; ?>
			<i class="fa fa-user fa-fw"></i> <span>Edit Profile</span>
		</a>
	</li>
	<li>
		<?php if(in_array($uri, $logindata_arr)): ?><a href="<?php echo site_url('mimin_jonu/login_data') ?>" class="active">
		<?php else: ?><a href="<?php echo site_url('mimin_jonu/login_data') ?>"><?php endif; ?>
			<i class="fa fa-sign-in fa-fw"></i> <span>Login Data</span>
		</a>
	</li>
	<li>
		<?php if(in_array($uri, $settings_arr)): ?><a href="<?php echo site_url('mimin_jonu/settings') ?>" class="active">
		<?php else: ?><a href="<?php echo site_url('mimin_jonu/settings') ?>"><?php endif; ?>
			<i class="fa fa-wrench fa-fw"></i> <span>Settings</span>
		</a>
	</li>	
	<li><a href="<?php echo site_url('mimin_jonu/logout') ?>"><i class="fa fa-power-off fa-fw"></i> <span>Logout</span></a></li>
</ul>